package com.mexico.inloancash.utils;

import android.app.ActivityManager;
import android.content.Context;

/**
 * Created by Eric at 2021/3/31
 */
public class DeviceUtils {

    private DeviceUtils() {
    }

    public static ActivityManager.MemoryInfo getMemoryInfo(Context context) {
        ActivityManager manager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
        ActivityManager.MemoryInfo info = new ActivityManager.MemoryInfo();
        manager.getMemoryInfo(info);
        return info;
    }
}
